﻿using DXApplicationTangche.UC.生产计划.生产批生产.service;
using DXApplicationTangche.UC.订单.service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.生产计划.生产批生产
{
    public partial class Form已完成一览 : DevExpress.XtraEditors.XtraForm
    {
        private int curPage;
        public Form已完成一览()
        {
            InitializeComponent();
            this.xtraUserControl分页.williamPagerEvent += this.refreshGrid;
            this.refreshGrid(1);
        }

        private void refreshGrid(int curPage)
        {
            //从DTO获取数据，绑定数据
            //API只要一行，原子性
            this.gridControl已完成一览.DataSource = 生产批生产Service.get已完成一览((curPage - 1).ToString(), "100");
            this.gridView已完成一览.RefreshData();
        }
    }
}
